package com.cavas.domain.bean;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name="remboursement")
public class Remboursement implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Integer remboursementId;
	
	private String date;
	
	private Integer montant;
	
	private String nom;
	
	private Integer interet;
	
	@ManyToOne
	@JoinColumn(name="pretId")
	private Pret pret;
	
	private Integer reste;
	
	private String info;
	
	public Integer getRemboursementId() {
		return remboursementId;
	}

	public void setRemboursementId(Integer id) {
		this.remboursementId= id;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public Integer getMontant() {
		return montant;
	}

	public void setMontant(Integer montant) {
		this.montant = montant;
	}

	
	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}
	

	public Integer getInteret() {
		return interet;
	}

	public void setInteret(Integer interet) {
		this.interet = interet;
	}

	public Pret getPret() {
		return pret;
	}

	public void setPret(Pret pret) {
		this.pret = pret;
	}

	public Integer getReste() {
		return reste;
	}

	public void setReste(Integer reste) {
		this.reste = reste;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}
}
